package cn.edu.scau.cmi.liujianxun.composite.transparent;

import java.util.ArrayList;
import java.util.HashSet;

public class Person extends Component{

	private ArrayList<Component> myList = new ArrayList<Component>();
	private String name;
	
	public Person(String name) {
		this.name = name;
	}
	
	@Override
	public String operation() {
		return "我是一个人，我的名字是" + this.name;
	}
	
	@Override
	public String getName() {
		return this.name;
	}

	@Override
	public boolean add(Component c) {
		return false;
	}
	
	@Override
	public boolean remove(Component c) {
		return false;
	}
	
	@Override
	public HashSet<Component> getSet() {
		return null;
	}
}
